const target = { a: 1 };
const object1 = { b: { name: "kaho" } };
const object2 = { c: 3 };
const res = Object.assign(target, object1);
console.log(res);
object1.b.name = "b";
console.log(res);
